import Request from "./request";

// 统一定义请求的API接口

//获取mv地址
export const getMvUrl = (params) => {
  return Request({
    url: "/mv/url",
    method: "get",
    params,
  });
};

// //获取video地址
// export const getVideoUrl = (params) => {
//     return Request({
//       url: "/video/url",
//       method: "get",
//       params,
//     });
//   };

//获取mv详情
export const getMvDetail = (params) => {
  return Request({
    url: "/mv/detail",
    method: "get",
    params,
  });
};

//获取相似mv
export const getMvSimi = (params) => {
  return Request({
    url: "/simi/mv",
    method: "get",
    params,
  });
};

//获取视频详情

export function getVideoInfo(id) {
  return Request({
      url: '/video/detail',
      params: {
          id
      }
  })
}

//获取视频url
export function getVideoUrl(id) {
  return Request({
      url: '/video/url',
      params: {
          id
      }
  })
}

export function getVideoRecommend(id) {
  return Request({
      url: '/related/allvideo',
      params: {
          id,
      }
  })
}



